/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [Warehouse.java]
 * Creation Date        [04-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_08_thread.producer_consumer;

/**
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public interface Warehouse {

	/**
	 * 生产number个产品
	 * 
	 * @param number
	 * @throws InterruptedException
	 */
	void produce(int number) throws InterruptedException;

	/**
	 * 消费number个产品
	 * 
	 * @param number
	 * @throws InterruptedException
	 */
	void consume(int number) throws InterruptedException;

}
